package com.xyulu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyulu.entity.BlogArticleEntity;
import com.xyulu.entity.common.PageBean;
import com.xyulu.entity.vo.ArticleQuery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lumin
 * @since 2021-02-25
 */
public interface BlogArticleService extends IService<BlogArticleEntity> {

    List<BlogArticleEntity> findArticleViews(PageBean page);

    void updateView(Integer view, Integer id);

    void updateComment(Integer comment, Integer id);

    void toRecycleBin(List<String> ids);

    void releaseArticle(BlogArticleEntity articleEntity);

    void editArticle(BlogArticleEntity articleEntity);

    List<BlogArticleEntity> showArticles(ArticleQuery query, PageBean pageBean);

    List<BlogArticleEntity> topViews();

    List<BlogArticleEntity> latestArticles();
}
